<?php
if ($video->num_rows() > 0) {
    $v = $video->row();
}

?>

<div id="wrapper-content" >
    <table class="titrepage" width="100%">
        <tr>
            <td >Modifier information du vidéo</td>

        </tr>
    </table>
<?php echo form_open(site_url('video/edit_video') . '/' . $v->id); ?>
<table align="center" class="list" cellpadding="10px" cellspacing="0">
    <tr>
        <td valign="top"><label for="name">Titre:</label></td>
        <td><input type="text" name="name" size="35" value="<?php echo $v->name;?>" /><br/>
         <td><?php echo form_error('name')?></td></td>
    </tr>
    
    <tr>
        <td><label>Fichier: </label></td>
        <td><?php echo $v->file_name;?></td>
    </tr>
    <tr>
        <td><label for="description">Description: </label></td>
        <td><textarea name="description" type="text" id="description" cols="40" rows="4"><?php echo $v->description;?></textarea></td>
    </tr>
    <tr>
        <td><?php echo form_error('description')?></td>
    </tr>
    <tr>
        <td><input type="submit" name="submit" value=" Modifier "/></td>
    </tr>
</table>
<?php echo form_close();?>
</div>